<? include "header.phtml"; ?>
  <h1><?=$this->escape($this->title);?></h1>
  <h2><?=$this->escape($this->description);?></h2>
  <a href="<?=$this->escape($this->action);?>">Register</a>
  <table border="1">
    <tr>
	  <th>ID</th>
	  <th>User Name</th>	  
	  <th>First Name</th>	  
	  <th>Last Name</th>	  
	  <th>Action</th>	  
	</tr>
	
	<?php if (count($this->paginator)): ?> 
    <?php foreach ($this->paginator as $item): ?>
      <tr>
      <?php 
      foreach($item as $value){
      	?>
      	<td><?=$value?></td>      		
      	<?php 
       } 
       ?>
       <td>
	    <a href="edit/id/<?=$item['id']?>">Edit</a>
		|
	    <a href="del/id/<?=$item['id']?>">Delete</a>		
	  </td>
      </tr>
    <?php endforeach; ?>
    <?php endif; ?>
    
   <?= $this->paginationControl($this->paginator, 'Sliding', 'Search.phtml'); ?>
	

  
<? include "footer.phtml"; ?>
